package com.muyu.product.domain.req;

import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @ClassName ProductMetadataReq
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/26 20:07
 */
@Data
@ApiModel(description = "满减价格")
public class ProductMetadataReq extends BaseEntity {
    private Long id;
    @NotNull(message = "满多少钱不能为空")
    @DecimalMin(value = "0", inclusive = true, message = "满多少钱必须大于等于0")
    @ApiModelProperty(value = "满多少钱")
    private BigDecimal fullPrice;

    @NotNull(message = "立减多少钱不能为空")
    @DecimalMin(value = "0", inclusive = true, message = "立减多少钱必须大于等于0")
    @ApiModelProperty(value = "立减多少钱")
    private BigDecimal subtractionPrice;

    @ApiModelProperty(value = "商品id")
    private Integer shopId;

}
